package main

import (
	"flag"
	"aDeploy/logger"
	"aDeploy/cmd"
)

func main() {
	loggerfile := flag.String("f", "aDeploy.log", "日志文件位置")
	flag.Parse()
	logger.FileConfig.FilePath = *loggerfile
	cmd.Init()

	task := cmd.Task{
		GitAddress:"git@git.lghdb.com:lghdb/phome.git",
		ServerAddress:"45.32.93.88",
		ServerWorkDir:"/home/lghdb",
		IsInit:true,
	}
	err := task.Start("")
	if err != nil {
		logger.Errorf("部署发生错误", err)
	}
}
